package com.ontology.util.gui;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
public class OFileChooserPanel extends OPanel {
	private static final long	serialVersionUID	= -5482734459801765069L;
	private JLabel				label;
	private JTextField			fileTextField;
	private JButton				chooseButton;
	public OFileChooserPanel() {
		this("Choose File/Folder");
	}
	public OFileChooserPanel(String chooserLable) {
		setLayout(new GridLayout(0, 3));
		label = new JLabel(chooserLable);
		add(label);
		fileTextField = new JTextField(45);
		add(fileTextField);
		chooseButton = new JButton("Choose");
		add(chooseButton);
	}
	public JLabel getLabel() {
		return label;
	}
	public void setLabel(JLabel label) {
		this.label = label;
	}
	public JTextField getFileTextField() {
		return fileTextField;
	}
	public void setFileTextField(JTextField fileTextField) {
		this.fileTextField = fileTextField;
	}
	public JButton getChooseButton() {
		return chooseButton;
	}
	public void setChooseButton(JButton chooseButton) {
		this.chooseButton = chooseButton;
	}
}
